﻿using TinyFrameWork;
/// <summary>
/// 只有一句话的弹框
/// 牛万葆-2016年6月3日 11:15:52
/// </summary>
public class UIMessageBoxLabel : UIBaseWindow
{
    private const string CONTENT_LABEL = "Content_Label";
    private UILabel contextLabel;
    public UILabel ContextLabel
    {
        get
        {
            if (contextLabel == null)
            {
                contextLabel = GameUtility.FindDeepChild<UILabel>(this.gameObject, CONTENT_LABEL);
            }
            return contextLabel;
        }
    }
    public override void InitWindowOnAwake()
    {
        base.InitWindowOnAwake();
        InitWindowData();
        contextLabel = GameUtility.FindDeepChild<UILabel>(this.gameObject, CONTENT_LABEL);
    }

    public override void InitWindowData()
    {
        base.InitWindowData();
        this.windowData.windowType = UIWindowType.PopUp;
        this.windowData.showMode = UIWindowShowMode.DoNothing;
        this.windowData.colliderMode = UIWindowColliderMode.Normal;
    }
}
